package com.zut.controller;

import com.zut.utils.DateUtil;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author: Mr.Liu
 * @create: 2021-11-25 13:39
 */
@RestController
public class TimeController {

@Autowired
DateUtil dateUtil;

    @ApiOperation("返回时间戳信息")
    @GetMapping("/alltime")
    public Map getTime(){
        return dateUtil.getTime();
    }
}
